package com.yjf.ljr.parser;

import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

import com.yjf.ljr.model.ResponseObject;

public class BaseParser extends DefaultHandler {
	
	public StringBuffer mBuf;
	public ResponseObject mRespObj = new ResponseObject();
	
	@Override
	public void characters(char[] ch, int start, int length)
			throws SAXException {
		mBuf.append(ch, start, length);
	}
	
	@Override
	public void startDocument() throws SAXException {
		mBuf = new StringBuffer();
		mRespObj = new ResponseObject();
	}
	
	public ResponseObject getRespObject() {
		return mRespObj;
	}
}